package com.chen.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@Table(name = "tb_operation_log")
public class OperationLog implements Serializable {

    @Id
    private String id;

    //操作人Id
    @Column(name = "oper_userid")
    private String operUserId;

    //操作模块
    @Column(name = "oper_modul")
    private String operModul;


    //操作类型
    @Column(name = "oper_type")
    private String operType;

    //操作描述
    @Column(name = "oper_desc")
    private String operDesc;

    //方法名
    @Column(name = "oper_method")
    private String operMethod;

    //请求参数
    @Column(name = "oper_requparam")
    private String operRequParam;

    //返回结果
    @Column(name = "oper_respparam")
    private String operRespParam;

    //操作用户名
    @Column(name = "oper_username")
    private String operUserName;

    //操作IP
    @Column(name = "oper_ip")
    private String operIp;

    //操作地址
    @Column(name = "oper_uri")
    private String operUri;

    //请求时间
    @Column(name = "oper_createtime")
    private String operCreateTime;

    //异常名称
    @Column(name = "exc_name")
    private String excName;

    //异常信息
    @Column(name = "exc_message")
    private String excMessage;

    //操作状态  0异常  1成功
    @Column(name = "type")
    private String type;

}
